From: Dan Nicolaescu Date: Tue, 21 Sep 2010 11:03:34 +0000 (+0300) Subject: * src/doprnt.c: Do not include stdlib.h, config.h does it. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~6524 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=4112461c5f3898901c02623f1efdaad4073e948f;p=emacs.git * src/doprnt.c: Do not include stdlib.h, config.h does it. Move #include before macro definition. --- diff --git a/src/ChangeLog b/src/ChangeLog index 728b0b8d6ff..587c72a4748 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-09-21 Dan Nicolaescu + + * doprnt.c: Do not include stdlib.h, config.h does it. + Move #include before macro definition. + 2010-09-20 Dan Nicolaescu * Makefile.in (temacs): Link using $(CC) not $(LD). diff --git a/src/doprnt.c b/src/doprnt.c index 1b45b21e36b..053fa183e6b 100644 --- a/src/doprnt.c +++ b/src/doprnt.c @@ -33,21 +33,17 @@ along with GNU Emacs. If not, see . */ #include #endif -#ifdef HAVE_STDLIB_H -#include -#endif - #include "lisp.h" -#ifndef DBL_MAX_10_EXP -#define DBL_MAX_10_EXP 308 /* IEEE double */ -#endif - /* Since we use the macro CHAR_HEAD_P, we have to include this, but don't have to include others because CHAR_HEAD_P does not contains another macro. */ #include "character.h" +#ifndef DBL_MAX_10_EXP +#define DBL_MAX_10_EXP 308 /* IEEE double */ +#endif + /* Generate output from a format-spec FORMAT, terminated at position FORMAT_END. Output goes in BUFFER, which has room for BUFSIZE chars.